﻿using System;

namespace WFIM.Framework.Parellel
{
  //=========================================================================
  /// <include file='XMLCodeDocumentation.xml' path='documentation/item[@name="T_TaskFailedToRunException"]/*' />
  public class TaskFailedToRunException : Exception
  {
    //-----------------------------------------------------------------------
    public ParallelTask task;
    //-----------------------------------------------------------------------
    public TaskFailedToRunException(ParallelTask _task)
      : base("Unable to run the task because of an Out Of Memory error on the threadpool")
    {
      task = _task;
    }
    //-----------------------------------------------------------------------
  }

  //=========================================================================
}
